home *** CD-ROM | disk | FTP | other *** search
- struct _attrs
- {
- unsigned reserved : 2;
- unsigned is_archivable : 1;
- unsigned is_dir : 1;
- unsigned is_label : 1;
- unsigned is_system : 1;
- unsigned is_hidden : 1;
- unsigned is_readonly : 1;
- };
-
- struct _files
- {
- char filename[80];
- struct _attrs attribute;
- } files[MAXFILES];
-
- .
- .
- if(files[i].attribute.is_readonly)
- printf("\nFile is READ ONLY");
- .
- .
-